Fix FFmpeg overlay rotation errors by using M_PI instead of PI and rotw/roth functions to calculate correct output dimensions.